package com.xyf.sys.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @Author R-H
 * @Date 2024/3/101209
 * @Description
 */
@Configuration
public class BaiduConfig {

    @Value("${baidu.appid}")
    private String appid;

    @Value("${baidu.apiKey}")
    private String apiKey;

    @Value("${baidu.secretKey}")
    private String secretKey;

//    @Bean
//    public AipNlp aipNlp(){
//        // 初始化一个AipNlp
//        AipNlp client = new AipNlp(appid, apiKey, secretKey);
//        // 可选：设置网络连接参数
//        client.setConnectionTimeoutInMillis(2000);
//        client.setSocketTimeoutInMillis(60000);
//        return client;
//    }
}
